<template>
	<view>
		<!-- 订单地址 -->
		<view class="order-headerAddress-view" v-if="form.address||form.username">
			<view class="order-headerAddress-title">
				<view class="headerAddress-name">
					<text style="margin-right: 20rpx;">{{form.username}}</text>
					<text>{{form.mobile}}</text>
				</view>
				<u-icon name="arrow-right" @click="$emit('navigatorOrderComfirm','order')"></u-icon>
			</view>
			<view class="order-headerAddress-text">
				<view>
					<u-icon name="map-fill" color="#333333"
						style="margin: 5rpx 20rpx 0 0;font-size: 18px;"></u-icon>
				</view>
				<view class="order-headerAddress-textView">
					{{form.address}}{{form.full_address}}
				</view>
			</view>
		</view>
		<view class="order-headerAddress-view" v-else>
			<view class="order-headerAddress-title">
				<view class="headerAddress-name">
					请添加地址
				</view>
				<u-icon name="arrow-right" @click="$emit(navigatorAddress)"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			form:Object
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="less">
	// 头部
	.order-headerAddress-view {
		background-color: #ffffff;
		border-radius: 20rpx;
		padding: 20rpx 30rpx;
	
		.order-headerAddress-title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 15px;
			color: #333333;
		}
	
		.order-headerAddress-text {
			display: flex;
			margin-top: 10rpx;
			color: #666666;
		}
	}
</style>